﻿using BCCommon.Enums;
using BCEntity.MongoDB.PushMessage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.Common.PushMessage.PushMessageSend.Order
{
    /// <summary>
    /// 推送消息--订单相关
    /// </summary>
    public interface IPushMessageForOrderService
    {
        /// <summary>
        /// 获取推送信息
        /// </summary>
        /// <param name="orderId">订单Id</param>
        /// <param name="pushMessageType">推送消息类型</param>
        /// <returns></returns>
        PushMessageMongoEntity GetPushMessageMongoEntity(long orderId, PushMessageType pushMessageType);

        /// <summary>
        /// 获取推送信息
        /// </summary>
        /// <param name="orderId">订单Id</param>
        /// <param name="pushMessageType">推送消息类型</param>
        /// <param name="distance">距离</param>
        /// <param name="timeSpent">时长</param>
        /// <param name="preestimateArrivalTime">预估到达时间</param>
        /// <param name="endAddress">目的地</param>
        /// <returns></returns>
        PushMessageMongoEntity GetPushMessageMongoEntity(long orderId, PushMessageType pushMessageType, decimal distance, int? timeSpent, DateTime? preestimateArrivalTime, string endAddress);
    }
}
